package homework5;

public class Chapter11 {
    public static void main(String[] args) {
        int arr[] = {1, 5, 9, 8, 4, 9};
        int a = 0 ;
        for (int i :arr) {
            System.out.print(i + "\t");
        }

        System.out.println();
        for (int i = 0; i < arr.length-1; i++) {
            for (int j = i+1; j < arr.length; j++) {
                if (arr[i] == arr[j]) {
                    System.out.println("重复");
                    a++;
                    break;
                }
            }
            if (a > 0) {
                break;
            }
        }
        

        if (a == 0) {
            System.out.println("没有重复");
        }
    }
}
